package com.chunlin.testinterface.cloneable;

public class Animal implements Cloneable{
    public String name = "animal";

//    @Override
//    public Animal clone(){
//        Animal o = null;
//        try {
//            o = (Animal)super.clone();
//        } catch (CloneNotSupportedException e) {
//            e.printStackTrace();
//        }
//        return o;
//    }


    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
